git clone "https://gitee.com/psuvjd/omz.git"
cd omz

# install fonts
FONTS="${HOME}/fonts"
env git clone 'https://gitee.com/psuvjd/fonts.git' $FONTS || {
	echo "git clone occurs error"
	exit 1
}
TMP=`pwd`
cd $FONTS
./install.sh
cd $HOME
rm -rf fonts
# install other fonts patch
cd $TMP
cp fonts/* $HOME/Library/Fonts/

# copy powerline theme
mkdir -p ~/.oh-my-zsh/custom/themes
mv themes/powerline.zsh-theme ~/.oh-my-zsh/custom/themes

# change default theme to powerline
sed -ie 's/^ZSH_THEME.*$/ZSH_THEME="powerline"/g' ~/.zshrc
# source ~/.zshrc

# hint
echo "install already done, please change your terminal's font to your favorite one whose name contains Powerline"

cd ../
rm -rf omz
